package com.alphaking.controller.common;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alphaking.util.QiNiuUtil;

@Controller
public class QiNiuController {

	/**
	 * 获取七牛的token
	 * @return
	 */
	@RequestMapping(value="/cors/getUpToken",method={RequestMethod.POST,RequestMethod.GET})
	@ResponseBody
	public String getUpToken(){
		return QiNiuUtil.getUpToken();
	}
}
